/*--------------------------------------------------------------------------------------*\
**
** adv_border_guard.h
**
** Heroes IV
** Copyright 2000, The 3DO Company
**
\*--------------------------------------------------------------------------------------*/

#ifndef ADV_BORDER_GATE_H_INCLUDED
#define ADV_BORDER_GATE_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "hero.h"
#include "stationary_adventure_object.h"

class	t_army;
class	t_button;
enum	t_path_search_type;
class	t_player;
class	t_text_window;
class	t_toggle_button;
class	t_town;

// Adventure object keymaster class.
class t_adv_border_gate : public t_stationary_adventure_object
{
public:
                
    t_adv_border_gate(  std::string const& source );
    void			activate_trigger( t_army* army, t_adv_map_point const& point, 
		                              t_direction direction, t_adventure_frame* frame );
	virtual bool	blocks_army( t_creature_array const&		army,
								 t_path_search_type path_type ) const;
	virtual bool	is_triggered_by( t_creature_array const& army ) const;
	virtual bool    read( std::streambuf&						stream, 
					      t_qualified_adv_object_type const&	type,
					      int									version );
	virtual bool    write( std::streambuf& stream ) const;	

protected:
};


#endif // ADV_BORDER_GATE_H_INCLUDED
